package mdm.led.util.session;

import com.alibaba.fastjson.JSONArray;

import mdm.led.common.AbstractBean;

import java.util.List;
import java.util.Set;

public class TokenSession extends AbstractBean {
    
    private String  token;
    private Integer accountId;     //登录用户ID
    private String  accountName;		   //登录用户名
    private String  nickName;      //登录用户姓名
    private long    createTime;    //登录时间
    private long    latestActiveTime;
    
    private JSONArray   rolePermission;   //用户操作权限
    
//    private List<ThreeChecks> threeCheckInfo;
//    
//    public List<ThreeChecks> getThreeCheckInfo() {
//		return threeCheckInfo;
//	}
//
//	public void setThreeCheckInfo(List<ThreeChecks> threeCheckInfo) {
//		this.threeCheckInfo = threeCheckInfo;
//	}

	public JSONArray getRolePermission() {
        return rolePermission;
    }

    public void setRolePermission(JSONArray rolePermission) {
        this.rolePermission = rolePermission;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getLatestActiveTime() {
        return latestActiveTime;
    }

    public void setLatestActiveTime(long latestActiveTime) {
        this.latestActiveTime = latestActiveTime;
    }

    public void touch() {
        setLatestActiveTime(System.currentTimeMillis());
    }



}
